import request from '@/utils/request'

//查看照片相册信息 /admin/photo/album/{albumId}/info
export function getPhotoInfo(id) {
  return request({
    url: '/admin/photo/album/'+id+'/info',
    method: 'get',
  })
}

//添加照片
export function addPhoto(data) {
  return request({
    url: '/admin/photo/add',
    method: 'post',
    data
  })
}


//查看后台相册列表 /admin/photo/list
export function getPhotoList(params) {
  return request({
    url: '/admin/photo/list',
    method: 'get',
    params
  })
}

//修改照片信息 updatePhoto /admin/photo/update
export function updatePhoto(data) {
  return request({
    url: '/admin/photo/update',
    method: 'put',
    data
  })
}

//删除照片 /admin/photo/delete
export function deletePhoto(ids) {
  return request({
    url: '/admin/photo/delete',
    method: 'delete',
    data:ids
  })
}